package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
        array[4] = 3;
        array[5] = 3;
        array[6] = 9;
        array[7] = 7;
        array[8] = 3;
        array[9] = 9;

        int counter3 = 0, counter7 = 0, counter9 = 0;

        for (int i : array) {
            if (i == 3) {
                counter3++;
            } else if (i == 7) {
                counter7++;
            } else if (i == 9) {
                counter9++;
            }
        }
		System.out.println("Number of 3: " + counter3);
		System.out.println("Number of 7: " + counter7);
		System.out.println("Number of 9: " + counter9);
	}
}
